package com.strongdigit.ioc.beans;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class InitBeanExample implements InitializingBean,DisposableBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("执行了初始化方法afterPropertiesSet");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("我被销毁了");
    }
}
